<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="shortcut icon" href="<?php echo Yii::app()->request->baseUrl; ?>/images/favicon.ico" />
        <link type="text/css" rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css" />
        <link type="text/css" rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/jquery.uniform.css" />
    </head>    
    <body>
        <div id="container">
            <div id="adminbar-outer" class="radius-bottom">
                <div id="adminbar" class="radius-bottom">
                    <a href="index.php" id="logo"></a>
                    <div id="details">
                        <a href="javascript: void(0)" class="avatar">
                            <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/avatar.jpg" alt="avatar" width="36" height="36" />
                        </a>
                        <div class="tcenter">
                            Hi <strong>Admin</strong>!<br/><a href="<?php echo Yii::app()->request->baseUrl; ?>" class="alight">网站主页</a> | <a href="login.php" class="alightred">退出</a>
                        </div>
                    </div>
                    <div id="widgets">
                        <ul id="widget-menu">
                            <li>
                                <a href="javascript: void(0)" class="w-link"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/w-icon-website-settings.png" alt="Website settings" /></a>
                            </li>
                            <li>
                                <a href="javascript: void(0)" class="w-link"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/w-icon-pm.png" alt="Pm" /><span>2</span></a>
                            </li>
                            <li>
                                <a href="javascript: void(0)" class="w-link"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/w-icon-adduser.png" alt="Add user" /></a>
                            </li>
                            <li>
                                <a href="javascript: void(0)" class="w-link"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/w-icon-twitter.png" alt="Twitter" /></a>
                            </li>
                            <li>
                                <a href="javascript: void(0)" class="w-link"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/w-icon-custom.png" alt="Custom" /></a>
                                <div class="widget">
                                    <div class="w-top"></div>
                                    <div class="w-content">
                                        <h2>Create your widgets!</h2>
                                        <p>Create the widgets with the functionality you need! Set up as many as you want but watch out for the logo :P !</p>
                                        <h2>Fluid, fixed layout? Fixed Adminbar?</h2>
                                        <p>Add a class and change TurboAdmin layout. You want a fluid or a fixed layout? Maybe a fixed Adminbar? You can get it :) Head on to 'Your page' and see!</p>
                                        <p>Make TurboAdmin way bigger and go crazy with the widgets!</p>
                                    </div>
                                    <div class="w-bottom"></div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>			
            <div id="panel-outer" class="radius">
                <div id="panel" class="radius">
                    <?php
                    $this->widget('zii.widgets.CMenu', array(
                        'id' => 'main-menu',
                        'htmlOptions' => array('class' => 'radius-top clearfix'),
                        'submenuHtmlOptions' => array('class' => 'main-menu-hover radius-bottom'),
                        'encodeLabel' => false,
                        'items' => array(
                            array(
                                'label' => '<img src="/yiiblog/images/m-dashboard.png" /><span>Dashboard</span>',
                                'url' => array('/manage/default/index')
                            ),
                            array(
                                'label' => '<img src="/yiiblog/images/m-users.png" /><span>User</span>',
                                'url' => array('/manage/user/index')
                            ),
                            array(
                                'label' => '<img src="/yiiblog/images/m-articles.png" /><span>Article</span>',
                                'url' => array('/manage/article')
                            ),
                            array(
                                'label' => '<img src="/yiiblog/images/m-gallery.png" /><span>Other</span>',
                                'url' => array('/manage/gallery/index')
                            ),
                            array(
                                'label' => '<img src="/yiiblog/images/m-files.png" /><span>Phone Book</span>',
                                'url' => array('/manage/phoneBook/index')
                            ),
                            array(
                                'label' => '<img src="/yiiblog/images/m-newsletter.png" /><span>Unknow</span>',
                                'url' => array('/manage/afd/index')
                            ),
                            array(
                                'label' => '<img src="/yiiblog/images/m-statistics.png" /><span>Favorite</span>',
                                'url' => array('/manage/favorite/index')
                            ),
                            array(
                                'label' => '<img src="/yiiblog/images/m-settings.png" /><span>Setting</span>',
                                'url' => array('/manage/setting/index')
                            ),
                            array(
                                'label' => '<img src="/yiiblog/images/m-custom.png" /><span>Custom</span>',
                                'url' => array('/manage/custom/index'),
                                'items' => array(
                                    array('label' => '<span>Custom 1</span>', 'url' => array('/manage/default/index')),
                                    array('label' => '<span>Custom 1</span>', 'url' => array('/manage/default/index')),
                                    array('label' => '<span>Custom 1</span>', 'url' => array('/manage/default/index'))
                                )
                            ),
                        ),
                    ));
                    ?>
                    <?php if (isset($this->breadcrumbs)): ?>
                        <?php
                        $this->widget('zii.widgets.CBreadcrumbs', array(
                            'id' => 'sub-menu',
                            'links' => $this->breadcrumbs,
                            'htmlOptions' => array(
                                'class' => 'clearfix',
                                'id' => 'sub-menu'
                            )
                        ));
                        ?>
<?php endif ?>
<?php echo $content; ?>
                    <div id="footer" class="radius-bottom">2011-12 &copy; <a href="http://www.yiiframework.com" class="afooter-link">Yii Admin 1.0</a> by <a href="http://www.yiiframework.com/" class="afooter-link">Yii Framework</a></div></div>
            </div>
        </div>
        <div class="push"></div>
    </body>
</html>        